import { Button, Result } from 'antd'

const Delete = ({ data, ModalEvent, Off }) => {

    const onDelate = () => {
        ModalEvent.emit({ type: 'Delete', data })
        Off()
    }


    return (
        <div className='WijmoDelete'>
            <Result
                status="warning"
                title="数据删除后将无法恢复,请确认后删除!"
                extra={<Button type="primary" key="console" size='large' danger onClick={onDelate}>确认删除!</Button>}
            />
        </div>
    );
};

export default Delete;